<?php
	class admin_controller extends Controller
	{		
		public function init()
		{
			#code that gets called all the time goes here
			$this->view->title = 'Welcome to the Admin Controller';
		}
		
		public function index_action()
		{
			$this->view->text = 'This is the index action';
			$this->view->name = Helper::undasherize($this->route->name);
					
			Database::set_datasource('my');
			$tmp = Database::select('Select * from users');
			$this->view->count = ArrayHelper::toTable($tmp);

			Database::set_datasource('post');
			$tmp = Database::select('select * from users');
			$this->view->count .= ArrayHelper::toTable($tmp);
			
		}	
		
		private function page_two_action()
		{
			$this->view->text = 'This is the page two action';
		}
	}
?>